import json

import requests


class FunnelStatistics:
    def getFunnelAnalysis(self):
        url = "http://192.168.1.224/triton/sephora/report/getFunnelAnalysis"
        header = {"Content-Type": "application/json;charset=UTF-8"}
        data = {"params":{"appName":"com.rongyi.sflcustomized","startDate":"2020-09-16","endDate":"2020-09-21","shopId":[14,11,1,6],"sephoraTerminalId":[3,5,14,21],"pageEngName1":"PAGE_INDEX","pageEngName2":"PAGE_COMMUNITY_INDEX","pageEngName":["PAGE_INDEX","PAGE_COMMUNITY_INDEX"]}}
        r = requests.post(url, data=json.dumps(data), headers=header)
        print('漏斗分析', r.json())
        return r.json()

#a=FunnelStatistics()
#a.getFunnelAnalysis()